﻿<Controls:MetroWindow x:Class="TimeSplicer.App.Shell"
        xmlns:prism="http://www.codeplex.com/prism"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
        Title="Time Splicer" Height="1000" Width="1400" 
        GlowBrush="{DynamicResource AccentColorBrush}"
        ResizeMode="CanResizeWithGrip"
        EnableDWMDropShadow="True">


    <Controls:MetroWindow.RightWindowCommands>
        <Controls:WindowCommands>
            <TextBlock Text="Hi!" Margin="0,7,0,0"  />
            <!--<Button Name="loginButton" Content="Login" Click="loginButton_Click" />-->
        </Controls:WindowCommands>
    </Controls:MetroWindow.RightWindowCommands>

    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1400" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="65" />
            <RowDefinition />
            <RowDefinition Height="35" />
        </Grid.RowDefinitions>

        <!-- Top Navigation -->
        <Border Name="topRegionBorder" Grid.Column="0" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="700" Height="65">
            <ContentControl Name="TopNavigationRegion" prism:RegionManager.RegionName="TopNavigationRegion" />
        </Border>
        
        <Border Name="globalCommandBorder" Grid.Column="0" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="360" Height="65">
            <!--<ContentControl Name="GlobalCommandRegion" prism:RegionManager.RegionName="GlobalCommandRegion" />-->
            <ContentControl Name="DeveloperUserSelectionRegion" prism:RegionManager.RegionName="UserSelectionRegion" />
        </Border>

        <Grid Grid.Column="0" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
            </Grid.RowDefinitions>



            <Border Grid.Column="0" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left">
                <ContentControl Name="LeftRegion" prism:RegionManager.RegionName="LeftRegion" />
            </Border>

            <Border Grid.Column="1" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="35,10,35,10">
                <Controls:TransitioningContentControl Name="MainRegion" prism:RegionManager.RegionName="MainRegion" Transition="LeftReplace" />
            </Border>



            <Border Grid.Column="2" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10">
                <ContentControl Name="RightRegion" prism:RegionManager.RegionName="RightRegion" />
            </Border>
        </Grid>

        <!-- Footer, for build info for right now -->
        <Border Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="25,0,0,0">
            <TextBlock Name="buildInfo" />
        </Border>
    </Grid>
</Controls:MetroWindow>
